package com.qhx.admin.service;

import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qhx.admin.domain.GoodsImg;
import com.qhx.admin.model.to.goods.GoodsImgDeleteTo;

import java.util.List;


public interface GoodsImgService extends IService<GoodsImg> {


    boolean createGoodImgUrls(List<String> imgUrls,Long goodsId);


    
    boolean updateGoodsImgUrls(List<String> imgUrls, Long goodsId);

    GoodsImg getGoodsImgByFiled(SFunction<GoodsImg,?> colum, Object val);

    List<GoodsImg> getAllByGoodsId(Long goodsId);

    boolean deleteGoodsImg(GoodsImgDeleteTo goodsImg);

}
